package com.qintian.rainstorm.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;


@Controller
@RequestMapping("/music")
public class MusicController {
    @Autowired
	YmService ymservice;
	

	
	@SuppressWarnings("unused")
	@RequestMapping("/test")
	@ResponseBody
	public Map<String,String> test(){
		Map<String, String> map=new HashMap<String, String>();
		try {
			map.put("code", "0");
			map.put("DS", ymservice.ymInfons());
			return map;
		} catch (Exception e) {
			map.put("code", "1");
			map.put("DS", "4");
			return map;
		}

	}
}
